home *** CD-ROM | disk | FTP | other *** search
- package netscape.debug;
-
- import java.lang.reflect.Field;
- import java.util.Hashtable;
-
- public class DebugController {
- private static DebugController controller;
- private VMHook vmHook;
- private Hashtable instructionHookTable;
-
- public static synchronized DebugController getDebugController() {
- if (controller == null) {
- controller = new DebugController();
- }
-
- return controller;
- }
-
- public native void sendInterrupt(Thread var1);
-
- public synchronized VMHook setVMHook(VMHook var1) {
- VMHook var2 = this.vmHook;
- this.vmHook = var1;
- return var2;
- }
-
- public VMHook getVMHook() {
- return this.vmHook;
- }
-
- public synchronized InstructionHook setInstructionHook(PC var1, InstructionHook var2) {
- if (this.instructionHookTable == null) {
- this.instructionHookTable = new Hashtable();
- }
-
- InstructionHook var3 = (InstructionHook)this.instructionHookTable.get(var1);
- this.instructionHookTable.put(var1, var2);
- this.setInstructionHook0(var1);
- return var3;
- }
-
- private native void setInstructionHook0(PC var1);
-
- public InstructionHook getInstructionHook(PC var1) {
- return this.instructionHookTable == null ? null : (InstructionHook)this.instructionHookTable.get(var1);
- }
-
- public synchronized native ThreadHook setThreadHook(Thread var1, ThreadHook var2);
-
- public native ThreadHook getThreadHook(Thread var1);
-
- public synchronized FieldHook setFieldHook(Field var1, FieldHook var2) {
- return null;
- }
-
- public FieldHook getFieldHook(Field var1) {
- return null;
- }
- }
-